#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"


int main()
{
	Stack ST;
	StackInit(&ST);
	StackPush(&ST, 1);
	StackPush(&ST, 2);
	StackPush(&ST, 3);
	StackPush(&ST, 4);
	STDateType top = StackTop(&ST);
	printf("top:%d\n", top);
	StackPop(&ST);
	top = StackTop(&ST);
	printf("top:%d\n", top);
	int size = StackSize(&ST);
	printf("size:%d\n", size);
	StackDestory(&ST);
	return 0;
}